@extends('layouts.tankuang')

@section('content')
    <!--startprint-->
    <form name="add_form" id="add_form" action="{{url('admin/units/add_baowei',$id)}}" method="post" enctype="multipart/form-data">
        <input type="hidden" name="_token" value="{{ csrf_token() }}">
        <div id="frdj">
            <h2 class="text-center mg_b36 mg_t25" style="font-weight: bold;">保安员登记表</h2>
            <table class="table-form table-border w mg-auto" style="width:900px;">
                <tr>
                    <td class="font-bd" style="width: 106px;">姓名</td>
                    <td colspan="2">{{$re->name}}</td>
                    <td class="font-bd" style="width: 102px;">性别</td>
                    <td>
                        {{$re->sex}}
                    </td>
                    <td rowspan="4" class="text-center" style="width:150px;">
                        @if($re->pic != '')
                            <img src="{{ URL::asset('/') }}{{$re->pic}}" class="img-rounded" alt="" width="120px">
                        @endif
                    </td>
                </tr>
                <tr>
                    <td class="font-bd">出生年月</td>
                    <td colspan="2">
                        {{$re->birthday}}
                    </td>
                    <td class="font-bd">民族</td>
                    <td>
                        {{$re->nation}}
                    </td>
                </tr>
                <tr>
                    <td class="font-bd">籍贯</td>
                    <td colspan="2">
                        {{$re->native_place}}
                    </td>
                    <td class="font-bd">政治面貌</td>
                    <td>
                        {{$re->political_status}}
                    </td>
                </tr>
                <tr>
                    <td class="font-bd">身份证号</td>
                    <td colspan="2">
                        {{$re->id_number}}
                    </td>
                    <td class="font-bd">联系电话</td>
                    <td>
                        {{$re->phone}}
                    </td>
                </tr>
                <tr>
                    <td class="font-bd">现住地址</td>
                    <td colspan="5">
                        {{$re->address}}
                    </td>
                </tr>
                <tr>
                    <td class="font-bd">身高</td>
                    <td>
                        {{$re->shengao}}
                    </td>
                    <td class="font-bd" style="width:54px;">血型</td>
                    <td>
                        {{$re->xuexing}}
                    </td>
                    <td class="font-bd">文化程度</td>
                    <td>
                        {{$re->education}}
                    </td>
                </tr>
                <tr>
                    <td class="font-bd">兵役状况</td>
                    <td>
                        {{$re->bingyi}}
                    </td>
                    <td class="font-bd">婚姻状况</td>
                    <td>
                        {{$re->hunyin}}
                    </td>
                    <td class="font-bd">健康状况</td>
                    <td>
                        {{$re->jiankang}}
                    </td>
                </tr>
                <tr>
                    <td class="font-bd">保安员证编号</td>
                    <td>
                        {{$re->bianhao1}}
                    </td>
                    <td class="font-bd">发证日期</td>
                    <td>
                        {{$re->fazhen_time1}}
                    </td>
                    <td class="font-bd">发证机关</td>
                    <td>
                        {{$re->jiguan1}}
                    </td>
                </tr>
                <tr>
                    <td class="font-bd">驾驶证号</td>
                    <td colspan="3">
                        {{$re->bianhao2}}
                    </td>
                    <td class="font-bd">准驾车型</td>
                    <td>
                        {{$re->chexing}}
                    </td>
                </tr>
                <tr>
                    <td class="font-bd">发证机关</td>
                    <td colspan="3">
                        {{$re->jiguan2}}
                    </td>
                    <td class="font-bd">发证日期</td>
                    <td>
                        {{$re->fazhen_time2}}
                    </td>
                </tr>
                <tr>
                    <td class="font-bd">入职日期</td>
                    <td colspan="3">
                        {{$re->ruzhi_time}}
                    </td>
                    <td class="font-bd">离职日期</td>
                    <td>
                        {{$re->lizhi_time}}
                    </td>
                </tr>
                <tr>
                    <td class="font-bd">备注</td>
                    <td colspan="7">
                        {{$re->remark}}
                    </td>
                </tr>
            </table>
            <!--endprint-->
            {{--<div class="w wbt mg_t25 mg_b18">
                <span class="font-bd">填报单位：</span>
                <input type="text" class="w250 input_bottom dsp" name="tbdw" value="{{$re->tbdw}}">
                <span class="itv"></span>
                <span class="font-bd">填报人：</span>
                <input type="text" class="w250 input_bottom dsp" name="tbr" value="{{$re->tbr}}">
            </div>--}}
            <div class="w wbt mg_t25" style="width:900px;">
                <a id="goToPageB" class="easyui-linkbutton dsp print" data-options="iconCls:'icon-print'" onclick="doPrint()">打印</a>
            </div>
        </div>
    </form>

    <script type="text/javascript">
        function doPrint() {
            bdhtml=window.document.body.innerHTML;
            sprnstr="<!--startprint-->";
            eprnstr="<!--endprint-->";
            prnhtml=bdhtml.substr(bdhtml.indexOf(sprnstr)+17);
            prnhtml=prnhtml.substring(0,prnhtml.indexOf(eprnstr));
            window.document.body.innerHTML=prnhtml;
            window.print();
        }
    </script>
@stop